TOLERANCE

private const val TOLERANCE: Float = 0.003f

Tolerance: ±0.35 % of the key value. Tight enough to avoid false hits between adjacent ratios yet forgiving enough that floating-point rounding from integer division (e.g. 1920 / 1080 = 1.7777…) still matches the canonical 16:9 entry.